package top.mataiji.manager.pojo;

import java.io.Serializable;

/**
 * @author zhoubin 
 * @since 1.0.0
 */
public class Book implements Serializable {
    /**
     * 
     */
    private Integer bookid;

    /**
     * 书籍名
     */
    private String bookname;

    /**
     * 电子文件地址
 
     */
    private String ebookaddress;

    /**
     * 是否免费
     */
    private Integer isfree;

    /**
     * 是否有实体书
 
     */
    private Integer isentity;

    /**
     * 多少积分可以阅读
 
     */
    private Integer howintegral;

    /**
     * 价格
     */
    private Long bookprice;

    /**
     * 类型id
     */
    private Integer typeid;

    /**
     * tb_book
     */
    private static final long serialVersionUID = 1L;

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname == null ? null : bookname.trim();
    }

    public String getEbookaddress() {
        return ebookaddress;
    }

    public void setEbookaddress(String ebookaddress) {
        this.ebookaddress = ebookaddress == null ? null : ebookaddress.trim();
    }

    public Integer getIsfree() {
        return isfree;
    }

    public void setIsfree(Integer isfree) {
        this.isfree = isfree;
    }

    public Integer getIsentity() {
        return isentity;
    }

    public void setIsentity(Integer isentity) {
        this.isentity = isentity;
    }

    public Integer getHowintegral() {
        return howintegral;
    }

    public void setHowintegral(Integer howintegral) {
        this.howintegral = howintegral;
    }

    public Long getBookprice() {
        return bookprice;
    }

    public void setBookprice(Long bookprice) {
        this.bookprice = bookprice;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bookid=").append(bookid);
        sb.append(", bookname=").append(bookname);
        sb.append(", ebookaddress=").append(ebookaddress);
        sb.append(", isfree=").append(isfree);
        sb.append(", isentity=").append(isentity);
        sb.append(", howintegral=").append(howintegral);
        sb.append(", bookprice=").append(bookprice);
        sb.append(", typeid=").append(typeid);
        sb.append("]");
        return sb.toString();
    }
}